<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <button id="zz">舟舟</button>
    <button id="cc">菜菜</button>
    <img  id = "img" src="/Users/D盘/JavaScript练习/picture/IMG_3893.GIF">
    <script>
        var zz = document.getElementById('zz');
        var cc = document.getElementById('cc');
        var img = document.getElementById('img');
        zz.onclick = function(){
            img.src="/Users/D盘/JavaScript练习/picture/IMG_3893.GIF";
            img.title = "zz";
        }
        cc.onclick = function(){
            img.src="/Users/D盘/JavaScript练习/picture/IMG_3895.GIF";
            img.title = "cc";
        }
    </script>
</body>
</html>